package com.cloud.im.exchanger;

import com.cloud.fim.common.constant.SerializeTypeConstants;
import lombok.Data;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
@Data
public class RequestHeader {
    public static final short MAGIC = 0x86;


    public static final short VERSION = 0x01;

    /**
     * the magic
     */
    private short magic= RequestHeader.MAGIC;

    /**
     * version
     */
    private short version = RequestHeader.VERSION;

    private byte cmdId = RequestHeader.VERSION;

    /**
     * the Serialize Type
     * the default value is {SerializeTypeConstants.PROTO_STUFF}
     * @see SerializeTypeConstants
     */
    private byte serializeType = SerializeTypeConstants.PROTO_STUFF;


}
